def _args_checker(d, key, allow_none=True, allow_type=None, default=None,cov_to=None):
    v = d.get(key,None)
    if not allow_none and v is None:
        raise ValueError(f"{key}选项不允许为空")
    if v is None:
        v = default
    if allow_type and not isinstance(v, allow_type):
        raise TypeError(f"{key}选项不允许这一类型")
    if cov_to  == tuple and not isinstance(v,tuple):
        v = tuple([int(i) for i in str(v).split(",")])
    return v